//
//  VBTempViewController.swift
//  VBo
//
//  Created by 赵世得 on 2016/10/23.
//  Copyright © 2016年 Zh. All rights reserved.
//

import UIKit

class VBTempViewController: UIViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        setUpUI()
    }
    
    @objc private func pushClick(){
        let tempVc = VBTempViewController()
        navigationController?.pushViewController(tempVc, animated: true)
        
    }
    
    private func setUpUI(){
        view.backgroundColor = UIColor.white
        setUpNav()
        
    }

    private func setUpNav(){
        navigationItem.rightBarButtonItem = UIBarButtonItem(setImg: nil, title: "PUSH", target: self, action: #selector(pushClick))
        navigationItem.title = "是\(navigationController?.childViewControllers.count ?? 0)个控制器"
    }
}
